package savelog;

/**
 * Title: Systems class for CSIS 343 Final Project 
 * Description: CS 343 Final Project - Systems This class will handle the systems for the app
 * 
 * @author Erik Olson
 * @email erik.olson-5@my.uwrf.edu
 * @author Mike Harmon
 * @email michael.harmon@my.uwrf.edu
 * @author Jack Friermuth
 * @email jack.friermuth@my.uwrf.edu
 * @author Luke Vang
 * @email luke.vang@my.uwrf.edu
 * @author Casey Golla
 * @email casey.golla@my.uwrf.edu
 * @date December 4th 2012
 */
public class Systems {
	//id of the system 
	private int sys_id;
	
	//name of the system
	private String sys_name;
	
	//path to the location of the system
	private String sys_directory;
	
	//what extension this system save files will have
	private String sys_ext;
	
	//1 system is active, 0 not active
	private int sys_is_active;
	
	//id of theme applied to system
	private int theme_id;
	
	/**
	 * Default constructor
	 */
	public Systems() {
		this.sys_id = 0;
		this.sys_name = "";
		this.sys_directory = "";
		this.sys_ext = "";
		this.sys_is_active = 0;
		this.theme_id = 0;
	}
	
	/**
	 * @param sys_id
	 * @param sys_name
	 * @param sys_directory
	 * @param sys_ext
	 * @param sys_is_active
	 * @param theme_id
	 */
	public Systems(int sys_id, String sys_name, String sys_directory,
			String sys_ext, int sys_is_active, int theme_id) {
		this.sys_id = sys_id;
		this.sys_name = sys_name;
		this.sys_directory = sys_directory;
		this.sys_ext = sys_ext;
		this.sys_is_active = sys_is_active;
		this.theme_id = theme_id;
	}

	/**
	 * method to get the system id
	 * @return int sys_id : 	the system id
	 */
	public int getSys_id() {
		return sys_id;
	}

	/**
	 * method to set the system id
	 * @param int sys_id :		the new system id
	 */
	public void setSys_id(int sys_id) {
		this.sys_id = sys_id;
	}

	/**
	 * method to get the system name
	 * @return string sys_name :		the name of the system
	 */
	public String getSys_name() {
		return sys_name;
	}

	/**
	 * method to set the system name
	 * @param string sys_name :		the new system id
	 */
	public void setSys_name(String sys_name) {
		this.sys_name = sys_name;
	}

	/**
	 * method to get the path to the directory the system is in
	 * @return string sys_directory :		the path to the directory the system is in
	 */
	public String getSys_directory() {
		return sys_directory;
	}

	/**
	 * method to set the path to the directory the system is in
	 * @param string sys_directory :		the new path to the directory the system is in
	 */
	public void setSys_directory(String sys_directory) {
		this.sys_directory = sys_directory;
	}

	/**
	 * method to get the extension on save files for this system
	 * @return string sys_ext :			the extension for save files
	 */
	public String getSys_ext() {
		return sys_ext;
	}

	/**
	 * method to set the extension on save files for this system
	 * @param string sys_ext :		the new system extension
	 */
	public void setSys_ext(String sys_ext) {
		this.sys_ext = sys_ext;
	}

	/**
	 * method to get if the system is active, 1 = active 0 = inactive
	 * @return int sys_is_active :		if the system is active
	 */
	public int getSys_is_active() {
		return sys_is_active;
	}

	/**
	 * method to set if the system is active, 1 = active 0 = inactive
	 * @param int sys_is_active :		the new system active
	 */
	public void setSys_is_active(int sys_is_active) {
		this.sys_is_active = sys_is_active;
	}

	/**
	 * method to get the theme id for this system
	 * @return int theme_id :		theme id for system
	 */
	public int getTheme_id() {
		return theme_id;
	}

	/**
	 * method to set the theme id
	 * @param int theme_id :		the new theme id
	 */
	public void setTheme_id(int theme_id) {
		this.theme_id = theme_id;
	}
	
	@Override
	public String toString() {
		return "Systems [sys_id=" + sys_id + ", sys_name=" + sys_name
				+ ", sys_directory=" + sys_directory + ", sys_ext=" + sys_ext
				+ ", sys_is_active=" + sys_is_active + ", theme_id=" + theme_id
				+ "]";
	}
}
